import request from '@/utils/request'
// 获取司机分页数据
export function getDrivers(params) {
  return request({
    url: '/manager/driver/page',
    method: 'get',
    params
  })
}
// 获取司机基本信息详情
export function getOnedriver(id) {
  return request({
    url: `/manager/driver/${id}`,
    method: 'get'
  })
}
// /保存司机信息
export function editOnedriver(data) {
  return request({
    url: `/manager/driver/${data.userId}`,
    method: 'put',
    data
  })
}

// 获取司机驾驶证信息
export function getOnedcard(id) {
  return request({
    url: `/manager/driverLicense/${id}`,
    method: 'get'
  })
}
// 获取未绑定车辆的司机
export function getDriverList() {
  return request({
    url: '/manager/unBindingDrivers/',
    method: 'get'
  })
}
// 获取已经停用的车辆
export function getStopcar() {
  return request({
    url: `/manager/unWorkingTrucks`,
    method: 'get'
  })
}
// 获取车辆详情
export function getOnecardata(id) {
  return request({
    url: `/manager/truck/${id}`,
    method: 'get'
  })
}
// 司机
export function getDriveDetailAPI(id) {
  return request.get(`/manager/driver/1025112013736764417`)
}

// 驾驶证
export function getLicenseAPI(id) {
  return request.get(`/manager/driverLicense/1025112013736764417`)
}

